home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / x25 / nrs.shar.Z / nrs.shar / text.SH < prev    next >
Encoding:
Text File  |  1990-04-27  |  941 b   |  39 lines

  1. case $CONFIG in
  2.     '') . config.sh ;;
  3. esac
  4. outputfile=text.cf
  5. rm -f $outputfile.$$
  6. echo "Creating $outputfile (with variable substitutions)"
  7. if cat >$outputfile.$$ <<!GROK!THIS!
  8. # RCSid[] = "@(#)$Header: text.SH,v 3.1 86/12/22 14:00:47 pb Rel $"
  9. #
  10. ##################################################
  11. ##################################################
  12. ##############
  13. ############## configure for reverse lookup
  14. ##############
  15. ##################################################
  16. ##################################################
  17. # verbose please
  18. verbose
  19.  
  20. # the directory to search for files in
  21.  
  22. directory $datadir
  23.  
  24. output text
  25. !GROK!THIS!
  26. then if cmp $outputfile $outputfile.$$ > /dev/null 2>& 1
  27.     then
  28.         rm -f $outputfile.$$
  29.         echo "    " $outputfile not affected
  30.     elif mv $outputfile.$$ $outputfile
  31.     then
  32.         echo "    " $outputfile updated
  33.     else
  34.         echo "+++    " $outputfile left in $outputfile.$$
  35.     fi
  36. else
  37.     echo "    " Failed to create $outputfile.$$
  38. fi
  39.